package com.frank.oj.service.team;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.common.Announcement;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.vo.AnnouncementVO;

/**
 * @author frank
 * @Date 2024/5/4
 */
public interface GroupAnnouncementService {
    CommonResult<IPage<AnnouncementVO>> getAnnouncementList(Integer limit, Integer currentPage, Long gid);

    CommonResult<IPage<AnnouncementVO>> getAdminAnnouncementList(Integer limit, Integer currentPage, Long gid);

    CommonResult<Void> addAnnouncement(Announcement announcement);

    CommonResult<Void> updateAnnouncement(Announcement announcement);

    CommonResult<Void> deleteAnnouncement(Long aid);
}
